package com.hs.srm.admin.modules.harmfulsubstance.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.hs.srm.base.common.base.CloneableEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * (SvhcHeadEntity)高度关注物质清单head表实体类
 *
 * @author ych
 * @since 2020-03-12 09:11:25
 */

@Setter
@Getter
@ToString
@TableName("svhc_head")
public class SvhcHeadEntity implements Serializable, CloneableEntity<SvhcHeadEntity> {
    private static final long serialVersionUID = 187977486389153573L;

    /**
    *  主键
    */
    @TableId(value = "pk_id", type = IdType.UUID)
    @TableField("pk_id")
    private String pkId;

    /**
    * 创建人
    */
    @TableField("creator")
    private String creator;

    /**
    * 创建时间
    */
    @TableField("create_date")
    @JSONField(format = "yyyy-MM-dd")
    private Date createDate;

    /**
    * 删除标记：1，删除；0，未删除
    */
    @TableField("delete_flag")
    private Integer deleteFlag;

    @Override
    public SvhcHeadEntity clone() {
        try {
            return (SvhcHeadEntity)super.clone();
        } catch(CloneNotSupportedException ex) {
            ex.printStackTrace();
        }
        return null;
    }
}